import { IntersectionType, OmitType, PartialType, PickType } from '@nestjs/swagger'
import { Home } from '@/modules/home/entities/home.entity'
import { ListPaginationDto } from '@/shared/types/globalDto.dto'

export class CreateHomeImageDto extends OmitType(Home, ['homeId', 'createdAt', 'updatedAt']) {}
export class UpdateHomeImageDto extends CreateHomeImageDto {}

export class FindOneHomeImageDto extends PickType(PartialType(Home), ['homeId', 'homeTitle', 'enableStatus']) {}
export class ListPaginationHomeImageDto extends PartialType(IntersectionType(FindOneHomeImageDto, ListPaginationDto)) {}

export class ListPaginationHomeImageVo {
  /**
   * 总数
   */
  total: number

  /**
   * 列表
   */
  list: Home[]
}
